package javapop.framework.parser;

import javapop.framework.ParseResult;


public class MaybeParse<T>  {
	private ParseResult<T> result;

	public MaybeParse(ParseResult<T> result) {
		this.result = result;
	}
	
	public MaybeParse() {
		result = null;
	}
	
	public boolean hasResult() {
		return result!=null;
	}
	
	public ParseResult<T> getResult() {
		return result;
	}

	
	
}
